package state;

public class DState implements State {
    @Override
    public void doSomething(Person person) {
        if ( person.getHour() == 18){
            System.out.println("eat dinner");
        } else {
            person.setState(new NState());
            person.doSomething();
        }
    }
}
